/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #cc00ff;
    text-decoration: none;
}

.logo span {
    color: #3498db;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.user-info:hover .user-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.user-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

/* 登录容器样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 90px);
    padding: 20px;
}

.login-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.github-button {
    display: inline-block;
    background-color: #24292e;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.github-button:hover {
    background-color: #444c56;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-container {
        height: 60px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar {
        margin-right: 0;
        width: 35px;
        height: 35px;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .login-box {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
}

/* 滚动效果 */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.navbar.scrolled .nav-container {
    height: 60px;
}